package cn.lanca.gof6_10._07adapter.case2;

import com.example.demo.gof6_10._07adapter.case2.target.Motor;
import com.example.demo.gof6_10._07adapter.case2.util.ReadXML;

/**
 * @author meihongliang
 * @since 2020/8/10 16:39
 */
public class MotorAdapterTest {
    public static void main(String[] args) {
        System.out.println("适配器模式测试：");
        Motor motor = (Motor) ReadXML.getObject();
        motor.drive();
    }
}
